#!/usr/bin/python
# -*- coding: UTF-8 -*-
# author : bird.zhang@ximalaya.com

import requests

# http://poro.ws/user/checkin

url = "https://oapi.dingtalk.com/robot/send?access_token=06d924722de88f60d67b0abeb7ceb9176a9bc4f332d63544f599e0506957a338"

headers = {
    "Content-Type": 'application/json'
}

data1 = """
{
	"msgtype": "text",
	"text": {
		"content": "测试"
	},
	"at": {
		"atMobiles": [
			"13627243520"
		],
		"isAtAll": true
	}
}
"""

data = """
{
	"msgtype": "text",
	"text": {
		"content": "Johan别玩我"
	},
	"at": {
		"isAtAll": true
	}
}
"""

response = requests.post(url, headers=headers, data=data.encode('utf-8'))
print(response.text)
